package Lesson14;

public class Participant 
{
	String name;
	boolean wantToBuy;
	int carsRemaining=2;
	
	void toBuyOrNot()
	{
		if ((int)(Math.random()*2) == 0)
			wantToBuy = false;
		else
		{
			wantToBuy = true;
			carsRemaining-=(int)(Math.random()*1.99 + 1);
		}
	}
}
